﻿

namespace EAI.ServiceHost
{
    using System;
    using System.Diagnostics;
    using System.Linq;

    using System.ServiceModel;
    using System.ServiceModel.Channels;
    using System.ServiceModel.Dispatcher;
    using System.ServiceModel.Description;

    using EAI.Logging;

    public class EAIMessageFormatter : IDispatchMessageFormatter
    {
        #region IDispatchMessageFormatter Members

        public void DeserializeRequest(Message message, object[] parameters)
        {           
        }


        public Message SerializeReply(MessageVersion messageVersion, object[] parameters, object result)
        {
            Message message = Message.CreateMessage(messageVersion,

                "http://tempuri.org/ISampleService/GetDataResponse",

                result);
            return message;
        }

        #endregion

    }
}
